﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Finance.Domain
{
    /// <summary>
    /// 应付管理
    /// </summary>
    public class PayableManagement : Audit
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int PayableManagementId { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        public string FlowingWaterNumber { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string PayableManagementName { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public int PayableManagementType { get; set; }
        /// <summary>
        /// 收款方
        /// </summary>
        public string Recipients { get; set; }
        /// <summary>
        /// 应收金额
        /// </summary>
        public int AmountReceivable { get; set; }
        /// <summary>
        /// 实收金额
        /// </summary>
        public int PaidInAmount { get; set; }
        /// <summary>
        /// 剩余金额
        /// </summary>
        public int RemainingAmount { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 最后付款日
        /// </summary>
        public DateTime LastPaymentDate { get; set; }
        /// <summary>
        /// 付款方
        /// </summary>
        public string Payer { get; set; }
        /// <summary>
        /// 付款次数
        /// </summary>
        public int NumberOfPayments { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 付款机构
        /// </summary>
        public string? PaymentInstitutions { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public int Rid {  get; set; }
    }
}
